<div class="pageContent">
	<form method="post"
		action="<?php echo site_url('backend/stock/edit') ?>"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="70">
			<input type="hidden" name="id" value="<?php echo $dataOne['id']?>">
			<dl>
				<dt>订单ID：</dt>
				<dd>
					<input name="serial" type="text" class="textInput readonly"
						size="30" readonly="true" value="<?php echo $dataOne['id']?>" />
				</dd>
			</dl>
			<dl>
				<dt>订单编号：</dt>
				<dd>
					<input name="serial" type="text" class="textInput readonly"
						size="30" readonly="true"
						value="<?php echo $dataOne['order_num']?>" />
				</dd>
			</dl>
			<dl>
				<dt>请求总数量：</dt>
				<dd>
					<input name="serial" type="text" class="textInput readonly"
						size="30" readonly="true"
						value="<?php echo $dataOne['request_total_num']?>" />
				</dd>
			</dl>
			<dl>
				<dt>仓库地址：</dt>
				<dd>
					<input name="serial" type="text" class="textInput readonly"
						size="30" readonly="true" value="<?php echo $dataOne['address']?>" />
				</dd>
			</dl>
			<dl>
				<dt>订单状态：</dt>
				<dd>
					<input name="serial" type="text" class="textInput readonly"
						size="30" readonly="true"
						value="<?php if($dataOne['status'] == 0){echo '关闭';	}else if ($dataOne['status'] == 1) {echo '等待总仓确定';}else if($dataOne['status'] == 3){echo '总仓确定';}else if ($dataOne['status'] == 10 ){echo '订单完成';} ?>
				" />
				</dd>
			</dl>
			<dl>
				<dt>下单时间：</dt>
				<dd>
					<input name="serial" type="text" class="textInput readonly"
						size="30" readonly="true"
						value="<?php echo date('Y-m-d H:i:s', $dataOne['created_at']) ?>" />
				</dd>
			</dl>
			<dl>
			</dl>
			<dl>
			</dl>
			<dl>
				<dt>确定收货量：</dt>
			</dl>
			
			<?php foreach ($data as $k=>$al): ?>
				<dl>
				<input type="hidden" name="stock[<?php echo $k ?>][id]"
					value="<?php echo $al['id'] ?>">
				<dt><?php echo $al['name']?></dt>
				<dd>
					<input name="stock[<?php echo $k ?>][number]" type="text" size="30"
						class="required" value="<?php echo $al['actual_number'] ?>" />
				</dd>

			</dl>
			<?php endforeach; ?>	
			

			<dl>
			</dl>
			<dl>
			</dl>
			<table class="table" width="100%" layoutH="138">
				<thead>
					<tr>
						<th width="300">商品名称</th>
						<th>现有库存</th>
						<th>单价</th>
						<th>退仓数量</th>
					</tr>
				</thead>
				<tbody>
						<?php foreach ($data as $al): ?>
							<tr target="sid_user" rel="1">
						<td><?php echo $al['name'] ?></td>
						<td>
					
					
					
					<?php echo $al['stock'] ?></td>
						<td>
						
						
						
						<?php echo $al['price']/100 ?></td>
						<td>
						
						
						
						<?php echo $al['request_number'] ?></td>
					</tr>
						<?php endforeach; ?>		
						
						
					</tbody>
			</table>


			</dl>


		</div>

		<div
			<?php if($dataOne['status'] !=1){ echo "style='display:none'"; }?>>
			<div class="formBar">
				<ul>
					<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">确认</button>
							</div>
						</div></li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
